import java.util.Iterator;

/**
 * 实现了处理定义语句 将得到的单词和罗马字相关联
 */
public class DefineHandler {

    public void putIntoMap(String text){
        String[] text3 = text.split("is ");
        Iterator iterator = RomanNumStatic.romanNumMap.keySet().iterator();
        while (iterator.hasNext()) {
//                "XX is L" 将XX和对应的罗马数字放入map当中
            char key = (Character) iterator.next();
            if (key == text3[1].trim().charAt(0)) {
                RomanNumStatic.scoreMap.put(text3[0].trim(), key);
                break;
            }
        }
    }
}
